Using this method, you write an installer for your application, and include an installation of OPC Studio elements in it as well, step by step.
The installer for your application should contain following steps:
If you want the end user to install the license:
If the application uses QuickOPC, create an empty registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Licensing\QuickOPC
If the application uses OPC Wizard, create an empty registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Licensing\OPCWizard
The end user who deploys the application will then:
If the above described procedure for installing the license key (presenting the user with the License Manager utility user interface) does not fit the needs of your application, you can automate the deployment of the license as well. This can be done in two ways:
The LicenseManager (GUI-based) and LMConsole (console-based) License Manager utilities are installed on the disk using the OPC Studio Setup program. They can also be directly downloaded using this link.
In .NET 6+, the major installation element is not an assembly, but rather a (NuGet) package, which may consist of multiple assemblies, differentiated by the target platform, and may depend on other packages.
The QuickOPC or OPC Wizard license key needs to be stored inside your application in the Managed Resource License Store (the Registry License Store can also be used, but only on Windows). Consequently, there are no additional deployment elements or steps needed with regard to licensing, because the license key is already embedded in your project's assembly by the build process.
Only when using OPC UA: After deploying the assemblies, your installation may want to execute your application with a special switch that will cause it to call static EasyUAClient.Install method. This will create the client instance certificate, in accordance with settings of other static properties on the object. With the default settings, this step is optional, and the application will create the client instance certificate on the first run anyway. If you, however, change the location of the application certificate store to a store that requires administrative privileges for write access, you should use this approach (while running with administrative privileges) in order to assure that the client instance certificate is properly created. For more information, see Providing OPC UA Application Instance Certificate and OPC UA Certificate Stores.
In order to deploy your application developed with QuickOPC or OPC Wizard for the .NET 6 or 8 runtime (on Windows, Linux, macOS or other operating system if supported), you can use either:
Both these deployment types are described in Microsoft's article .NET application publishing overview. Applications developed with QuickOPC or OPC Wizard do not have any special requirements or procedures needed above that.